#include <Windows.h>
#include <iostream>

using namespace std;

void start_exe(string exe_path, string param)
{
    
    system((exe_path + " " + param).c_str());
    /* SHELLEXECUTEINFO info = {0};
    info.cbSize = sizeof(info);
    info.fMask = SEE_MASK_NOCLOSEPROCESS;
    info.hwnd = NULL;
    info.lpVerb = NULL;
    info.lpFile = exe_path.c_str();
    info.lpParameters = NULL;
    info.lpDirectory = NULL;
    info.nShow = SW_SHOW;

    if (ShellExecuteEx(&info))
    {
        WaitForSingleObject(info.hProcess, INFINITE);
        CloseHandle(info.hProcess);
    }
    else
    {
        cout << "Failed to open program." << endl;
    } */
}

int main()
{
    start_exe("start E:/Project/Repositories/cpp/cpp/httpserver/dist/py/dist/ws/ws.exe", "\"{\\\"allowed_origins\\\": [\\\"http://127.0.0.1:6660\\\"]}\"");
    system("pause");

    return 0;
}